package com.ruoyi.system.service;

import java.math.BigDecimal;
import java.util.List;
import com.ruoyi.system.domain.TOrders;

/**
 * 订单Service接口
 *
 * @author ruoyi
 * @date 2025-06-24
 */
public interface ITOrdersService
{
    /**
     * 查询订单
     *
     * @param orderId 订单主键
     * @return 订单
     */
    public TOrders selectTOrdersById(Long id);

    /**
     * 查询订单列表
     *
     * @param tOrders 订单
     * @return 订单集合
     */
    public List<TOrders> selectTOrdersList(TOrders tOrders);

    /**
     * 新增订单
     *
     * @param tOrders 订单
     * @return 结果
     */
    public int insertTOrders(TOrders tOrders);

    /**
     * 修改订单
     *
     * @param tOrders 订单
     * @return 结果
     */
    public int updateTOrders(TOrders tOrders);

    /**
     * 批量删除订单
     *
     * @param orderIds 需要删除的订单主键集合
     * @return 结果
     */
    public int deleteTOrdersByIds(Long[] ids);

    /**
     * 删除订单信息
     *
     * @param orderId 订单主键
     * @return 结果
     */
    public int deleteTOrdersById(Long id);

    List<TOrders> ordersListByUserId(Long userId, Long status);

    List<TOrders> getOneDay();

    Integer countOrderStatusNum(int oederStatus);

    BigDecimal sumOrderAmount();

    List<TOrders> selectDeliveryList();

    List<TOrders> selectReceivedList(Long userId);

    public int updateOrders(TOrders tOrders);

    List<TOrders> selectPendingList(TOrders tOrders);

    List<TOrders> selectOrderReady(TOrders tOrders);
}
